package com.ftg.learn.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDate;

/**
 * @author 布衣
 */
@Data
@Schema(name = "老师实体类")
public class TeacherEntity {
    @Schema(description = "主键")
    private Integer id;
    @Schema(description = "姓名",format = "string",maximum = "20",minimum = "2",defaultValue = "张三")
    private String teaName;
    @Schema(description = "性别",format = "string",maximum = "1",minimum = "1",defaultValue = "男")
    private String teaSex;
    @Schema(description = "创建日期",format = "date" )
    private LocalDate gmtCreate;
    @Schema(description = "更新时间",format = "date")
    private LocalDate gmtUpdate;

}
